import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';

// 思普云组件
import './plugins/superCloud.js';

// css样式
import 'normalize.css/normalize.css';
import './styles/index.scss';

// Element组件及国际化
import * as ElementUI from './plugins/element.js';
import i18n from './lang/index';
import locale from 'element-ui/lib/locale/lang/en';
Vue.use(ElementUI, { locale });

// 注册全局自定义指令
import * as directives from '@/directives';
Object.keys(directives).forEach(key => {
  Vue.directive(key, directives[key]);
});

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  i18n,
  render: h => h(App)
}).$mount('#app');
